package com.macro.mall.portal.controller;

import com.macro.mall.common.api.CommonResult;
import com.macro.mall.model.SmsFlashPromotion;
import com.macro.mall.portal.service.SmsFlashPromotionService;
import com.macro.mall.portal.vo.SmsFlashPromotionVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@Api(tags = "SmsFlashPromotionSessionController", description = "限时购场管理")
@RequestMapping("/flashPromotionSession")
public class SmsFlashPromotionSessionController {
    @Autowired
    private SmsFlashPromotionService flashPromotionService;
    @ApiOperation("获取限时购场")
    @GetMapping("/list")
    private CommonResult<SmsFlashPromotionVO> listGetById(@RequestParam Long flashPromotionId){
        return CommonResult.success(flashPromotionService.listGetById(flashPromotionId));
    }
}
